﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WorkOrder.aspx.cs" Inherits="CRM.Web.Pop.WorkOrder" %>

<%@ Register src="usControl/ConsultingCase.ascx" tagname="ConsultingCase" tagprefix="uc1" %>
<%@ Register src="usControl/ComplaintCase.ascx" tagname="ComplaintCase" tagprefix="uc2" %>
<%@ Register src="usControl/RepairCase.ascx" tagname="RepairCase" tagprefix="uc3" %>

<%@ Register src="usControl/PotentialCustomerCase.ascx" tagname="PotentialCustomerCase" tagprefix="uc4" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title></title>
    <link href="<%= base.ResourcesPath + "Style/main.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/button.css" %>" rel="stylesheet" type="text/css" />
    <link href="<%= base.ResourcesPath + "Style/pop.css" %>" rel="stylesheet" type="text/css" />    
    <link href="<%= base.ResourcesPath + "Style/ui.tabs.css" %>" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/jquery-1.6.2.min.js" ></script>
    <script src="<%= base.ResourcesPath %>Js/ui.core.js" type="text/javascript"></script> 
    <script src="<%= base.ResourcesPath %>Js/ui.tabs.js" type="text/javascript"></script> 
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/My97DatePicker/WdatePicker.js"  defer="defer" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/MaskTextBox.js" ></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/Common.js"></script>
    <script type="text/javascript" src="<%= base.ResourcesPath %>Js/button.js"></script>
    <script type="text/javascript">
        $(document).ready(function() {
            
            //黑名单申请
            $('#blackApply').bind("click", function() {
                var customerId = $('#hfCustomerId').val();
                var customerCode = $('#lblCustomerCode').html();
                var customerName = $('.customerName').val();

                var phone = $('#hfPhone').val();
                var recordCode = $('#hfRecordCode').val();
                var callId = $('#hfCallId').val();
                var callType = $('#hfCallType').val();
                var url = 'BlackApply.aspx?OPENTYPE=NEWPAGE&CustomerId=' + customerId + '&CustomerCode=' + customerCode + '&CustomerName=' + customerName + '&Phone=' + phone + '&RecordCode=' + recordCode + '&CallId=' + callId + '&CallType=' + callType;
                var title = '黑名单申请';
                openPage(encodeURI(url), title, 900, 600);
                return false;
            });

            //发送短信息
            $('#sendSMS').bind("click", function() {
                var phone = $('#hfPhone').val();
                var bodys = '';
                var url = '../MessagingManage/SMSSend.aspx?OPENTYPE=NEWPAGE&PHONE=' + phone + '&BODYS=' + bodys;
                var title = '发送短信息';
                openPage(encodeURI(url), title, 900, 600);
            });

            //产品线资源查询
            $('.btnProductResourceSearch').bind("click", function() {
                var url = '../VehicleManage/ProductResourceSearch.aspx';
                var title = 'ProductResourceSearch';
                openModalDialog(encodeURI(url), title, 900, 600);
            });
            //故障现像
            $('#btnSymtom').bind("click", function() {
                var url = '../VehicleManage/FaultSymptom.aspx';
                var title = 'FaultSymptomSearch';
                openModalDialog(encodeURI(url), title, 800, 600);
            });
            //GPS
            $('.gps').bind("click", function() {
                var vinCode = $('.repairVinCode').val();
                if (vinCode.length == 0) {
                    alert('整车编号不能为空！');
                    return;
                }
                var url = $('#txtGPSUrl').val() + vinCode;
                var title = 'GPS';
                //window.open(url, title);
                openPage(encodeURI(url), title, 1000, 600);
                var gisUrl = "../Common/GISSearch.ashx?vinCode=" + vinCode;
                $.get(gisUrl,
                    function(data) {
                        $('.gpsAddress').val(data);
                    });
            });

            $('.btnProcessingUserSearch').live("click", function() {
                var userType = $('.ddlProcessingObjectType').val();
                var department = $('.ddlProcessingDepartmentID').val();
                var url = 'ProcessingUserSelected.aspx?DEPARTMENTID=' + department + "&USERTYPE=" + userType;
                var title = '派工人员选择';
                openPage(encodeURI(url), title, 600, 400);
            });


            $('.rVVillageTown').live("change", function() {
                var temp = $.trim($('.rVCountry').find("option:selected").text());
                temp += $.trim($('.rVProvince').find("option:selected").text());
                temp += $.trim($('.rVPrefectureCity').find("option:selected").text());
                temp += $.trim($('.rVCity').find("option:selected").text());
//                temp += $.trim($('.rVVillageTown').find("option:selected").text());
                temp += $.trim($('.rVVillageTown').val());
                $('.rFailureOccurs').val(temp);
            });

            $('.rVVillage').bind("focusout", function() {
                var temp = $.trim($('.rVCountry').find("option:selected").text());
                temp += $.trim($('.rVProvince').find("option:selected").text());
                temp += $.trim($('.rVPrefectureCity').find("option:selected").text());
                temp += $.trim($('.rVCity').find("option:selected").text());
                //                temp += $.trim($('.rVVillageTown').find("option:selected").text());
                temp += $.trim($('.rVVillageTown').val());
                temp += $.trim($('.rVVillage').val());
                $('.rFailureOccurs').val(temp);
            });

            $('.rVGroupteam').bind("focusout", function() {
                var temp = $.trim($('.rVCountry').find("option:selected").text());
                temp += $.trim($('.rVProvince').find("option:selected").text());
                temp += $.trim($('.rVPrefectureCity').find("option:selected").text());
                temp += $.trim($('.rVCity').find("option:selected").text());
                //                temp += $.trim($('.rVVillageTown').find("option:selected").text());
                temp += $.trim($('.rVVillageTown').val());
                temp += $.trim($('.rVVillage').val());
                temp += $.trim($('.rVGroupteam').val());
                $('.rFailureOccurs').val(temp);

            });

            $('.cVVillageTown').live("change", function() {
                var temp = $.trim($('.cVCountry').find("option:selected").text());
                temp += $.trim($('.cVProvince').find("option:selected").text());
                temp += $.trim($('.cVPrefectureCity').find("option:selected").text());
                temp += $.trim($('.cVCity').find("option:selected").text());
//                temp += $.trim($('.cVVillageTown').find("option:selected").text());
                temp += $.trim($('.cVVillageTown').val());
                $('.cVehicleLocation').val(temp);
            });

            $('.cVVillage').bind("focusout", function() {
                var temp = $.trim($('.cVCountry').find("option:selected").text());
                temp += $.trim($('.cVProvince').find("option:selected").text());
                temp += $.trim($('.cVPrefectureCity').find("option:selected").text());
                temp += $.trim($('.cVCity').find("option:selected").text());
                //                temp += $.trim($('.cVVillageTown').find("option:selected").text());
                temp += $.trim($('.cVVillageTown').val());
                temp += $.trim($('.cVVillage').val());
                $('.cVehicleLocation').val(temp);
            });

            $('.cVGroupteam').bind("focusout", function() {
                var temp = $.trim($('.cVCountry').find("option:selected").text());
                temp += $.trim($('.cVProvince').find("option:selected").text());
                temp += $.trim($('.cVPrefectureCity').find("option:selected").text());
                temp += $.trim($('.cVCity').find("option:selected").text());
                //                temp += $.trim($('.cVVillageTown').find("option:selected").text());
                temp += $.trim($('.cVVillageTown').val());
                temp += $.trim($('.cVVillage').val());
                temp += $.trim($('.cVGroupteam').val());
                $('.cVehicleLocation').val(temp);

            });


            ResetIFrameHeight($('#pConsultingCase').height());
            ResetIFrameHeight($('#pRepairCase').height());
            ResetIFrameHeight($('#pComplaintCase').height());
            ResetIFrameHeight($('#pPotentialCustomerCase').height());

            //初始来电类型事件
            //            var workOrderType = $('.ddlWorkOrderType').val();
            //            switch (workOrderType) {
            //                case "1":
            //                    {
            //                        $('#pConsultingCase').show();
            //                        ResetIFrameHeight($('#pConsultingCase').height());
            //                    }
            //                    break;
            //                case "2":
            //                    {
            //                        $('#pRepairCase').show();
            //                        ResetIFrameHeight($('#pRepairCase').height());
            //                    }
            //                    break;
            //                case "3":
            //                    {
            //                        $('#pComplaintCase').show();
            //                        ResetIFrameHeight($('#pComplaintCase').height());
            //                    }
            //                    break;
            //                default:
            //            }

            //改变来电类型事件
            $('.ddlWorkOrderType').bind('change', function() {
                //                $('#pConsultingCase').hide();
                //                $('#pRepairCase').hide();
                //                $('#pComplaintCase').hide();
                //                var type = $(this).val();
                //                switch (type) {
                //                    case "1":
                //                        {
                //                            $('#pConsultingCase').show();
                //                            ResetIFrameHeight($('#pConsultingCase').height());
                //                        }
                //                        break;
                //                    case "2":
                //                        {
                //                            $('#pRepairCase').show();
                //                            ResetIFrameHeight($('#pRepairCase').height());
                //                        }
                //                        break;
                //                    case "3":
                //                        {
                //                            $('#pComplaintCase').show();
                //                            ResetIFrameHeight($('#pComplaintCase').height());
                //                        }
                //                        break;
                //                    default:
                //                }
            });


        });

        function SetProcessingUser(userLogin, userName) {
            $('.processingUserLogin').val(userLogin);
            $('.processingUserName').val(userName);
        }
        
        //刷新iFrame高度
        function ResetIFrameHeight(height) {
            if(height == null) {
                return;
            }
            var customerHeight = $('#tCustomerInfo').height();
            var customerTitleHeight = $('#tCustomerTitle').height();
            var addCase = $('.addCase').height();
            var ifameHeight = height + customerHeight + addCase + customerTitleHeight + 35;
            window.parent.document.getElementById('frameWorkOrder').style.height = ifameHeight + 'px';
        }
        
        //设置车辆信息
        function SetVehicleInfo(productCode, brand, vehicleType, series, models, engineModel, engineManufacturers, vinCode, engineNumber, dealerCode, stationCode, vehicleMarkCode, customerCode, customerName, ownersMobilePhone, ownersHomePhone, purchaseDate) {
            $('.productCode').val(productCode);
            $('.brand').val(brand);
            $('.vehicleType').val(vehicleType);
            $('.series').val(series);
            $('.models').val(models);
            $('.engineModel').val(engineModel);
            $('.engineManufacturers').val(engineManufacturers);
            $('.vinCode').val(vinCode);
            $('.engineNumber').val(engineNumber);
            $('.dealerCode').val(dealerCode);
            $('.stationCode').val(stationCode);
            $('.ownersPeople').val(customerName);
            $('.ownersMobilePhone').val(ownersMobilePhone);
            $('.ownersHomePhone').val(ownersHomePhone);
            $('.ownersPeopleCode').val(customerCode);
            $('.purchaseDate').val(purchaseDate);
            $('.vehicleMarkCode').val(vehicleMarkCode);            
            $('.productCode').focus();
            return true;
        }
        
        //设置客户信息
        function SetCustomerInfo(customerId, customerCode) {
            $('#lblCustomerCode').html(customerCode);
            $('#hfCustomerId').val(customerId);
            $('.customerName').focus();
            $('#btnRefreshCustomerInfo').click();
        }
        //设置故障现象信息
        function SetFailureInfo(failureParts, failurePartsCode, symptom, symptomCode, fullSymptom) {
            $('.failureParts').val(failureParts);
            $('.failurePartsCode').val(failurePartsCode);
            $('.symptom').val(symptom);
            $('.symptomCode').val(symptomCode);
            $('.fullSymptom').val(fullSymptom);
            $('.symptom2').val(symptom);
            $('.failureParts2').val(failureParts);
            $('.fullSymptom2').val(fullSymptom);

        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <div style="width: 100%">
        <asp:PlaceHolder ID="phCustomerInfo" runat="server">
            <table border="0" cellpadding="0" cellspacing="0" class="tTitleBlue" id="tCustomerTitle" >
                <tr>
                    <td class="left">
                        <img src="<%= base.ResourcesPath %>Images/pop/pop_title_left_blue.gif" alt="" />
                    </td>
                    <td class="middle">
                        <div class="pagetitle">
                            <div>
                                客户信息 <span style="margin-left: 220px;"><img src="<%= base.ResourcesPath %>Images/SoftPhone/tel_logo.png" />【客户编号：<asp:Label runat="server" ID="lblCustomerCode"></asp:Label>】
                                【来电类型：<asp:Label id="lblCallType" runat="server"></asp:Label>】</span>
                           </div>
                        </div>
                    </td>
                    <td class="right">
                        <img src="<%= base.ResourcesPath %>Images/pop/pop_title_right_blue.gif" alt="" />
                    </td>
                </tr>
            </table>
            <table id="tCustomerInfo" border="0" cellpadding="0" cellspacing="0" class="table" >
                <caption class="caption">                    
                    <table  border="0" cellpadding="0" cellspacing="0" style="width: 100%">
                        <tr>
                            <td style="width; auto;">
                                <asp:DropDownList ID="ddlWorkOrderType" runat="server" CssClass="ddl ddlWorkOrderType" Visible="False" ></asp:DropDownList>
                                <asp:Button ID="btnRefreshCustomerInfo" runat="server" onclick="btnRefreshCustomerInfo_Click" Style="display: none;" CausesValidation="False" />
                                <asp:HiddenField runat="server" ID="hfCustomerId" />
                                <asp:HiddenField runat="server" ID="hfPhone" />
                                <asp:HiddenField runat="server" ID="hfRecordCode" />
                                <asp:HiddenField runat="server" ID="hfCallId" />
                                <asp:HiddenField runat="server" ID="hfCallType" />                    
                                <asp:Button ID="btnBlackApply" runat="server" Text="黑名单申请"  CommandName="BlackApply"  CssClass="" OnClick="btnBlackApply_Click" Visible="false" />
                            &nbsp;</td>
                            <td style="width: 260px; ">                            
                                <input type="button" id="blackApply" class="btn" value="黑名单申请" />
                                <input type="button" id="sendSMS" class="btn" value="发送短信" />
                            </td>
                        </tr>
                    </table>                    
                </caption>
                <tr>
                    <td class="title"><div class="nowrap" >
                        <span class="mark">*</span>客户姓名:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtCUSTOMERNAME" runat="server" CssClass="txt customerName" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvCUSTOMERNAME"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtCUSTOMERNAME"
                                Enabled="true"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        首选联系号码:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtFIRSTCONTACTTEL" runat="server" CssClass="txt" MaxLength="20" 
                            onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"
                            Rows="3" TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvFIRSTCONTACTTEL"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtFIRSTCONTACTTEL"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        手机号码:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtMOBILEPHONE" runat="server" CssClass="txt" MaxLength="20" Rows="3" 
                            onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvMOBILEPHONE"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtMOBILEPHONE"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        座机号码:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtHOMEPHONE" runat="server" CssClass="txt" MaxLength="20" Rows="3" 
                            onkeyup="isPositiveInteger(this);" onbeforepaste="isClipboardPositiveInteger();"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvHOMEPHONE"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtHOMEPHONE"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div class="nowrap" >
                        详细地址:</div>
                    </td>
                    <td class="content" colspan="7">
                        <asp:TextBox ID="txtADDRESS" runat="server" CssClass="txt txt90" MaxLength="256" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvADDRESS" runat="server"
                                ErrorMessage="*" Display="Dynamic" ControlToValidate="txtADDRESS" Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div class="nowrap" >
                        国家:</div>
                    </td>
                    <td class="content">
                        <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                            <ContentTemplate>
                                <asp:DropDownList ID="ddlCOUNTRY" runat="server" CssClass="ddl" 
                                    AutoPostBack="True" onselectedindexchanged="ddlCOUNTRY_SelectedIndexChanged" ></asp:DropDownList>
                            </ContentTemplate>
                        </asp:UpdatePanel>
                    </td>
                    <td class="title"><div class="nowrap" >
                        省份:</div>
                    </td>
                    <td class="content">
                        <asp:UpdatePanel ID="UpdatePanel2" runat="server">
                            <ContentTemplate>
                        <asp:DropDownList ID="ddlPROVINCE" runat="server" CssClass="ddl" 
                                    onselectedindexchanged="ddlPROVINCE_SelectedIndexChanged"  AutoPostBack="true" ></asp:DropDownList>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="ddlCOUNTRY" 
                                    EventName="SelectedIndexChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                    <td class="title"><div class="nowrap" >
                        地级市:</div>
                    </td>
                    <td class="content">
                        <asp:UpdatePanel ID="UpdatePanel3" runat="server">
                            <ContentTemplate>
                        <asp:DropDownList ID="ddlPREFECTURECITY" runat="server" CssClass="ddl" 
                                    onselectedindexchanged="ddlPREFECTURECITY_SelectedIndexChanged"  AutoPostBack="true" ></asp:DropDownList>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="ddlCOUNTRY" 
                                    EventName="SelectedIndexChanged" />
                                <asp:AsyncPostBackTrigger ControlID="ddlPROVINCE" 
                                    EventName="SelectedIndexChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                    <td class="title"><div class="nowrap" >
                        区/县/市:</div>
                    </td>
                    <td class="content">
                        <asp:UpdatePanel ID="UpdatePanel4" runat="server">
                            <ContentTemplate>
                        <asp:DropDownList ID="ddlCITY" runat="server" CssClass="ddl" 
                                    onselectedindexchanged="ddlCITY_SelectedIndexChanged"  AutoPostBack="true" ></asp:DropDownList>
                            </ContentTemplate>
                            <Triggers>
                                <asp:AsyncPostBackTrigger ControlID="ddlCOUNTRY" 
                                    EventName="SelectedIndexChanged" />
                                <asp:AsyncPostBackTrigger ControlID="ddlPROVINCE" 
                                    EventName="SelectedIndexChanged" />
                                <asp:AsyncPostBackTrigger ControlID="ddlPREFECTURECITY" 
                                    EventName="SelectedIndexChanged" />
                            </Triggers>
                        </asp:UpdatePanel>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div class="nowrap" >
                        乡/镇/街道:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtVILLAGETOWN" runat="server" CssClass="txt VillageTown" MaxLength="32"></asp:TextBox>  
                    </td>
                    <td class="title"><div class="nowrap" >
                        村:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtVILLAGE" runat="server" CssClass="txt" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvVILLAGE" runat="server"
                                ErrorMessage="*" Display="Dynamic" ControlToValidate="txtVILLAGE" Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        组/队:</div>
                    </td>
                    <td class="content" colspan="3" >
                        <asp:TextBox ID="txtGROUPTEAM" runat="server" CssClass="txt txtmiddle" MaxLength="64" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvGROUPTEAM"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtGROUPTEAM"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div class="nowrap" >
                        客户群:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlCUSTOMERBASE" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvCUSTOMERBASE"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlCUSTOMERBASE"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        客户类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlCUSTOMERTYPE" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvCUSTOMERTYPE"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlCUSTOMERTYPE"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        客户等级:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlCUSTOMERLEVEL" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvCUSTOMERLEVEL"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlCUSTOMERLEVEL"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        单位名称:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtORGNAME" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvORGNAME" runat="server"
                                ErrorMessage="*" Display="Dynamic" ControlToValidate="txtORGNAME" Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                </tr>
                <tr>
                    <td class="title"><div class="nowrap" >
                        大客户类型:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlBIGCUSTOMERTYPE" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator ID="rfvBIGCUSTOMERTYPE"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlBIGCUSTOMERTYPE"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        状态:</div>
                    </td>
                    <td class="content">
                        <asp:DropDownList ID="ddlSTATUS" runat="server" CssClass="ddl" ></asp:DropDownList><asp:RequiredFieldValidator
                                ID="rfvSTATUS" runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="ddlSTATUS"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title"><div class="nowrap" >
                        证件号码:</div>
                    </td>
                    <td class="content">
                        <asp:TextBox ID="txtIDNUMBER" runat="server" CssClass="txt" MaxLength="32" Rows="3"
                            TextMode="SingleLine"></asp:TextBox><asp:RequiredFieldValidator ID="rfvIDNUMBER"
                                runat="server" ErrorMessage="*" Display="Dynamic" ControlToValidate="txtIDNUMBER"
                                Enabled="False"></asp:RequiredFieldValidator>
                    </td>
                    <td class="title">
                    </td>
                    <td class="content" >         
                        
                    </td>
                </tr>
            </table>            
            <div style="width: 100%">
                <div class="btndiv notPrint addCase">
		            <span class="btnspan"><asp:Button ID="btnAddConsultingCase" runat="server" Text="新建咨询工单" CausesValidation="False"  CommandName="AddConsultingCase"  CssClass="btn title_qd" OnClick="btnOK_Click" /></span>
		            <span class="btnspan"><asp:Button ID="btnAddRepairCase" runat="server" Text="新建报修工单"  CausesValidation="False"  CommandName="AddRepairCase"  CssClass="btn title_qd" OnClick="btnOK_Click" /></span>
                    <span class="btnspan"><asp:Button ID="btnAddComplaintCase" runat="server" Text="新建投诉工单"  CausesValidation="False"  CommandName="AddComplaintCase"  CssClass="btn title_qd" OnClick="btnOK_Click" /></span>
                    <span class="btnspan"><asp:Button ID="btnAddPotentialCustomerCase" runat="server" Text="潜在客户"  CausesValidation="False"  CommandName="btnAddPotentialCustomerCase"  CssClass="btn title_qd" OnClick="btnOK_Click" /></span>
		            <span class="btnspan"><input id="btnClose"  type="button" value="关 闭" class="btnwrite" onclick="closeParent();" /></span>
		            <span class="btnspan"><input id="btnPrint" type="button" value="打 印" class="btnwrite " /></span>
	            </div>
            </div>
        </asp:PlaceHolder>
        <asp:Panel ID="pConsultingCase" runat="server" Visible="false" >            
            <uc1:ConsultingCase ID="consultingCase" runat="server" />
        </asp:Panel>
        <asp:Panel ID="pRepairCase" runat="server" Visible="false"  >            
            <uc3:RepairCase ID="repairCase" runat="server" />
        </asp:Panel>
        <asp:Panel ID="pComplaintCase" runat="server" Visible="false" >
            <uc2:ComplaintCase ID="complaintCase" runat="server" />            
        </asp:Panel>
        <asp:Panel ID="pPotentialCustomerCase" runat="server" Visible="false" >    
            <uc4:PotentialCustomerCase ID="potentialCustomerCase" runat="server" />    
        </asp:Panel>
    </div>
    <asp:TextBox ID="txtGPSUrl" runat="server" style="display: none;"></asp:TextBox>
    </form>
</body>
</html>
